package cc.owoo.godpen.network.reptile;

import java.net.InetSocketAddress;
import java.net.Proxy;

/**
 * 代理池
 * Created by nimensei
 * 2022-05-02 上午 11:20
 **/
public interface ProxyPool {
    Proxy get();

    static Proxy create(String ip, int port) {
        return new Proxy(Proxy.Type.SOCKS, new InetSocketAddress(ip, port));
    }
}
